﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE.Product.PartData;

namespace ERP_RORZE.Product.Forms
{
    public partial class Frm_PartData : DevExpress.XtraEditors.XtraForm
    {
        ctrlPartList ctrlPartlist = new ctrlPartList();
        ctrlPartMaterial ctrlPartmaterial = new ctrlPartMaterial();
        ctrlOptionData ctrlOptiondata = new ctrlOptionData();
        public Frm_PartData()
        {
            InitializeComponent();
        }

        private void navItemPartList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartData.Panel2.Controls.Clear();
            spcPartData.Panel2.Controls.Add(ctrlPartlist);
            ctrlPartlist.Dock = DockStyle.Fill;
        }

        private void navItemPartMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartData.Panel2.Controls.Clear();
            spcPartData.Panel2.Controls.Add(ctrlPartmaterial);
            ctrlPartmaterial.Dock = DockStyle.Fill;
        }

        private void navItemOptionData_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcPartData.Panel2.Controls.Clear();
            spcPartData.Panel2.Controls.Add(ctrlOptiondata);
            ctrlOptiondata.Dock = DockStyle.Fill;
        }
    }
}